package com.soup.common.module.sys.service.impl;

import com.soup.common.service.BaseServiceImpl;
import com.soup.common.module.sys.entity.Role;
import com.soup.common.module.sys.mapper.RoleMapper;
import com.soup.common.module.sys.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *      权限服务方法实现
 * </p>
 *
 * @author zhaoyi
 * @date 2019-08-05 23:46
 * @since 1.0
 */
@Service
@Slf4j
public class RoleServiceImpl extends BaseServiceImpl<Role> implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public Role queryRole(Integer roleId) {
        return roleMapper.selectRole(roleId);
    }
}
